package com.kgc.scd.Constant;

/**
 * Created On : 2022/11/3.
 * <p>
 * Author : 刘慧枫
 * <p>
 * Description: 微信支付常量类
 */
public class WechatPayConstant {

    //系统交易订单号的前缀标识符
    public static final String WECHAT_PAY_TRADE_ORDER_NO_PREFIX = "KH";

    //系统格式化日期字符串，到秒
    public static final String WECHAT_PAY_TIME_PATTERN_ALL = "yyyyMMddHHmmss";

    //系统格式化日期字符串，到天
    public static final String WECHAT_PAY_TIME_PATTERN_DAY = "yyyyMMdd";

    //微信支付的交易类型：native
    public static final String WECHAT_PAY_TRADE_TYPE_NATIVE = "NATIVE";

    //微信支付的签名方式：MD5
    public static final String WECHAT_PAY_SIGN_TYPE_MD5 = "MD5";

    //微信支付的签名参数名
    public static final String WECHAT_PAY_FIELD_SIGN = "sign";

    //微信支付下单请求字符集编码
    public static final String WECHAT_PAY_ENCODING_UTF8 = "UTF-8";

    //微信支付下单结果成功状态码
    public static final String WECHAT_PAY_RESULT_SUCCESS = "SUCCESS";
    public static final String WECHAT_PAY_RESULT_MSG = "OK";

    //微信支付结果异步回调的同步响应-成功
    public static final String WECHAT_PAY_NOTIFY_RESP_SUCCESS = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";

    //微信支付结果异步回调的同步响应-成功
    public static final String WECHAT_PAY_NOTIFY_RESP_FAIL = "<xml><return_code><![CDATA[FAIL]]></return_code><return_msg><![CDATA[NO OK]]></return_msg></xml>";


}

